package com.util.vmsg.beans;

import com.google.appengine.api.datastore.Entity;

public class MobileNumber {
	private String mobileNumber;
	private boolean verifiedMobileNumber;
	private Person mobileOwner;
	
	public Entity getMobileNumberEntity()
	{
		Entity mobileNumberEntity = new Entity("MobileNumber",mobileNumber);
		mobileNumberEntity.setProperty("mobileNumber",mobileNumber);
		mobileNumberEntity.setProperty("verifiedMobileNumber",verifiedMobileNumber);

		if(mobileOwner!=null && mobileOwner.getEmailId()!=null)
		  mobileNumberEntity.setProperty("mobileOwner",mobileOwner.getEmailId());
		
		return mobileNumberEntity;
	}
	
	public String getMobileNumber() {
		return mobileNumber;
	}
	public void setMobileNumber(String mobileNumber) {
		this.mobileNumber = mobileNumber;
	}
	public boolean isVerifiedMobileNumber() {
		return verifiedMobileNumber;
	}
	public void setVerifiedMobileNumber(boolean verifiedMobileNumber) {
		this.verifiedMobileNumber = verifiedMobileNumber;
	}
	public Person getMobileOwner() {
		return mobileOwner;
	}
	public void setMobileOwner(Person mobileOwner) {
		this.mobileOwner = mobileOwner;
	}
	public MobileNumber(String mobileNumber, boolean verifiedMobileNumber,
			Person mobileOwner) {
		super();
		this.mobileNumber = mobileNumber;
		this.verifiedMobileNumber = verifiedMobileNumber;
		this.mobileOwner = mobileOwner;
	}
	
	
}
